<?php
declare(strict_types=1);
namespace Framework\Libs;
/**
 * //IDE_LOAD_START
 *
 * //IDE_LOAD_END
 */
class CustomException extends \Exception {
    private mixed $data;
    public function __construct($message = "",int $code = 0, \Throwable $previous = null,mixed $data = null) {
        parent::__construct($message, $code, $previous);
        $this->data = $data;
    }

    public function getData() {
        return $this->data;
    }
}
